package com.tm.article.controller;

import com.tm.article.service.ApCommentService;
import com.tm.media.model.dtos.ApCommentDto;
import com.tm.media.utils.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Ly
 * @Data 2023/3/7 19:04
 * @ClassName ApCommentController
 */
@RestController
@RequestMapping("api/v1/common")
public class ApCommentController {
    @Autowired
    private ApCommentService apCommentServicep;
    @PostMapping("pinglun")
    public Result pinglun(@RequestBody ApCommentDto apCommentDto){
        return apCommentServicep.pinglun(apCommentDto);
    }
    @PostMapping("list")
    public Result selectApComment(){
        return apCommentServicep.selectApComment();
    }
}
